package com.shiikong_memory.yez.MySQLAPI.DaoImpl;

import com.shiikong_memory.yez.MySQLAPI.Dao.SklandMapper;
import com.shiikong_memory.yez.MySQLAPI.JavaBean.SklandBean;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SklandServer{
    @Resource
    private SklandMapper sklandMapper;

    
    public List<SklandBean> getAll() {
        return sklandMapper.getAll();
    }

    
    public SklandBean getByKookId(String kookId) {
        return sklandMapper.getByKookId(kookId);
    }

    
    public boolean addSkland(String KookId, String KookName, String ArknightsToken, String BotId) {
        return sklandMapper.addSkland(KookId, KookName, ArknightsToken, BotId);
    }

    
    public boolean updateByKookId(String kookId, String ArknightsToken) {
        return sklandMapper.updateByKookId(kookId, ArknightsToken);
    }

    
    public boolean deleteByKookId(String KookId) {
        return sklandMapper.deleteByKookId(KookId);
    }
}
